NXP Semiconductors /LPC11Axx /CMP /CTL

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CTL

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (RESERVED)RESERVED 0 (FALLING)EDGESEL 0 (RESERVED)RESERVED 0 (DIRECT)COMPSA 0 (RESERVED)RESERVED 0 (VLADOUT)COMP_VP_SEL 0 (VLADDOUT)COMP_VM_SEL 0 (RESERVED)RESERVED0 (EDGECLR)EDGECLR 0 (COMPSTAT)COMPSTAT 0 (RESERVED)RESERVED 0 (COMPEDGE)COMPEDGE 0 (RESERVED)RESERVED 0 (NOHYSTERESIS)HYS0 (RESERVED)RESERVED

EDGESEL=FALLING, HYS=NOHYSTERESIS, COMPSA=DIRECT, COMP_VP_SEL=VLADOUT, COMP_VM_SEL=VLADDOUT

Description

Comparator control register

Fields

RESERVED

Reserved. Write as 0.

EDGESEL

This field controls which edges on the comparator output set the COMPEDGE bit (bit 23 below): 00 = Falling edges 01 = Rising edges 1x = Both edges

0 (FALLING): Falling edges

1 (RISING): Rising edges

2 (DUALEDGE): Both edges

3 (DUALEDGE): Both edges

RESERVED

Reserved. Write as 0.

COMPSA

Comarator output control

0 (DIRECT): Uses the comparator output directly.

1 (SYNCH): Synchronizes the comparator output to the bus clock for output to other modules.

RESERVED

Reserved. Write as 0.

COMP_VP_SEL

Selects positive voltage input

0 (VLADOUT): voltage ladder output

1 (ACMPI1): ACMPI1

2 (ACMPI2): ACMPI2

3 (ACMPI3): ACMPI3

4 (ACMPI4): ACMPI4

5 (ACMPI5): ACMPI5

6 (INTVOLTAGEREF): internal reference voltage

7 (TEMPSENSOR): temperature sensor

COMP_VM_SEL

Selects negative voltage input

0 (VLADDOUT): voltage ladder output

1 (ACMPI1): ACMPI1

2 (ACMPI2): ACMPI2

3 (ACMPI3): ACMPI3

4 (ACMPI4): ACMPI4

5 (ACMPI5): ACMPI5

6 (INTVOLTAGEREF): internal reference voltage

RESERVED

Reserved. Write as 0.

EDGECLR

Interrupt clear bit. Writing a 1 to this bit clears the COMPEDGE bit (bit 23 below) and thus negates the interrupt request.

COMPSTAT

Comparator status. This bit reflects the state of the comparator output.

RESERVED

Reserved. Write as 0.

COMPEDGE

Comparator edge-detect status.

RESERVED

Reserved. Write as 0.

HYS

Controls the hysteresis of the comparator. When the comparator is outputting a certain state, this is the difference between the selected signals, in the opposite direction from the state being output, that will switch the output.

0 (NOHYSTERESIS): None (the output will switch as the voltages cross)

1 (HYS5MV): 5 mV

2 (HSY10MV): 10 mV

3 (HSY20MV): 20 mV

RESERVED

Reserved

Links

()